import {ModuleWithProviders, NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import { AccountComponent } from "./account/account.component";
import {RoleComponent} from '../permissions/role/role.component';
import {PermissionComponent} from './permission/permission.component';
import {CategoryComponent} from './category/category.component';

export const routes: Routes = [
  {
    path: 'account',
    component: AccountComponent,
  },
  {
    path: 'role',
    component: RoleComponent,
  },
  {
    path: 'permission',
    component: PermissionComponent,
  },
  {
    path: 'category',
    component: CategoryComponent,
  }
];

// @NgModule({
//   imports: [
//     RouterModule.forChild(routes)
//   ],
//   exports: [
//     RouterModule
//   ],
//   providers: []
// })
// export class PermissionsRouting {
//
// }

export const routing: ModuleWithProviders = RouterModule.forChild(routes);

